-
Notifications
You must be signed in to change notification settings - Fork 0
Fix issues with deploy:Registrar
and deploy:AngelProtocol
#215
Conversation
deploy:Registrar
deploy:Registrar
and deploy:AngelProtocol
tasks/deploy/deployAngelProtocol.ts
Outdated
@@ -71,7 +71,7 @@ task("deploy:AngelProtocol", "Will deploy complete Angel Protocol") | |||
|
|||
const gasFwd = await deployGasFwd( | |||
{ | |||
deployer: deployer, | |||
deployer: proxyAdmin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be APTeamMultisig. See my longer comment in my PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep! Should be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export enum NetworkConnectionAction { | ||
NONE, | ||
POST, | ||
DELETE, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a type
not a constant
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enums in TS are actually objects (like many things in JS/TS it's confusing, I know).
https://www.typescriptlang.org/docs/handbook/enums.html#enums-at-runtime
Since we have many enums we need to create, we can store them in a separate enums.ts
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds like a good idea! Thanks for the info
Explanation of the solution
IndexFund > registrarContract
updateGasFwdFactory > registrar
updateGasFwdFactory
should beproxyAdmin
(currentlydeployer
)LocalRegistrar.updateNetworkConnections
should useenum NetworkConnectionAction
for itsaction
paramInstructions on making this work
yarn
oryarn install
to install npm dependenciesyarn test
to verify all tests still passnpx hardhat node
yarn deploy --network localhost --yes
npx hardhat deploy:Registrar --network localhost --yes